package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.dao.impl.activity.peakseacraft.*;
import com.yanqu.road.entity.activity.peakseacraft.*;
import com.yanqu.road.entity.activity.peakseacraft.config.PeakSeacraftDonateConfig;
import com.yanqu.road.entity.activity.peakseacraft.config.PeakSeacraftLastGuessConfig;
import com.yanqu.road.entity.activity.peakseacraft.config.PeakSeacraftRoundScoreConfig;

import java.util.List;
import java.util.Map;

/**
 * @Description
 */
public class PeakSeacraftBusiness {

    // Config
    public static List<PeakSeacraftDonateConfig> getPeakSeacraftDonateConfigList(int activityId){
        return new PeakSeacraftConfigDaoImpl().getPeakSeacraftDonateConfigList(activityId);
    }

    public static List<PeakSeacraftRoundScoreConfig> getPeakSeacraftRoundScoreConfigList(int activityId){
        return new PeakSeacraftConfigDaoImpl().getPeakSeacraftRoundScoreConfigList(activityId);
    }

    public static List<PeakSeacraftLastGuessConfig> getPeakSeacraftLastGuessConfigList(int activityId){
        return new PeakSeacraftConfigDaoImpl().getPeakSeacraftLastGuessConfigList(activityId);
    }

    // user
    public static Map<Long,PeakSeacraftCrossUserData> getPeakSeacraftCrossUserDataMap(int activityId, int unionGroup){
        return new PeakSeacraftCrossUserDataDaoImpl().getPeakSeacraftCrossUserDataMap(activityId, unionGroup);
    }

    public static boolean updatePeakSeacraftCrossUserData(PeakSeacraftCrossUserData data){
        return new PeakSeacraftCrossUserDataDaoImpl().update(data);
    }

    public static boolean addPeakSeacraftCrossUserData(PeakSeacraftCrossUserData data){
        return new PeakSeacraftCrossUserDataDaoImpl().add(data);
    }

    public static Map<Long, PeakSeacraftCrossUserGuessData> getPeakSeacraftCrossUserGuessDataMap(int activityId, int unionGroup){
        return new PeakSeacraftCrossUserGuessDataDaoImpl().getPeakSeacraftCrossUserGuessDataList(activityId, unionGroup);
    }

    public static boolean updatePeakSeacraftCrossUserGuessData(PeakSeacraftCrossUserGuessData data){
        return new PeakSeacraftCrossUserGuessDataDaoImpl().update(data);
    }

    public static boolean addPeakSeacraftCrossUserGuessData(PeakSeacraftCrossUserGuessData data) {
        return new PeakSeacraftCrossUserGuessDataDaoImpl().add(data);
    }

    public static PeakSeacraftUserData getPeakSeacraftUserData(int activityId, long userId){
        return new PeakSeacraftUserDataDaoImpl().getPeakSeacraftUserData(activityId, userId);
    }

    public static boolean updatePeakSeacraftUserData(PeakSeacraftUserData data){
        return new PeakSeacraftUserDataDaoImpl().update(data);
    }

    public static boolean addPeakSeacraftUserData(PeakSeacraftUserData data) {
        return new PeakSeacraftUserDataDaoImpl().add(data);
    }

    // challenge
    public static Map<Long, PeakSeacraftCrossChallengeData> getPeakSeacraftCrossChallengeDataMap(int activityId, int unionGroup){
        return new PeakSeacraftCrossChallengeDataDaoImpl().getPeakSeacraftCrossChallengeDataMap(activityId, unionGroup);
    }

    public static boolean updatePeakSeacraftCrossChallengeData(PeakSeacraftCrossChallengeData data){
        return new PeakSeacraftCrossChallengeDataDaoImpl().update(data);
    }

    public static boolean addPeakSeacraftCrossChallengeData(PeakSeacraftCrossChallengeData data){
        return new PeakSeacraftCrossChallengeDataDaoImpl().add(data);
    }

    // union
    public static Map<String, PeakSeacraftCrossUnionData> getPeakSeacraftCrossUnionDataMap(int activityId, int unionGroup){
        return new PeakSeacraftCrossUnionDataDaoImpl().getPeakSeacraftCrossUnionDataMap(activityId, unionGroup);
    }

    public static Map<String, PeakSeacraftCrossUnionData> getAllPeakSeacraftCrossUnionDataMap(int activityId){
        return new PeakSeacraftCrossUnionDataDaoImpl().getAllPeakSeacraftCrossUnionDataMap(activityId);
    }

    public static boolean addPeakSeacraftCrossUnionData(PeakSeacraftCrossUnionData data){
        return new PeakSeacraftCrossUnionDataDaoImpl().add(data);
    }

    public static boolean updatePeakSeacraftCrossUnionData(PeakSeacraftCrossUnionData data){
        return new PeakSeacraftCrossUnionDataDaoImpl().update(data);
    }

    // ship
    public static Map<String, PeakSeacraftCrossUnionShipData> getPeakSeacraftCrossUnionShipDataMap(int activityId, int unionGroup){
        return new PeakSeacraftCrossUnionShipDataDaoImpl().getPeakSeacraftCrossUnionShipDataMap(activityId, unionGroup);
    }

    public static boolean addPeakSeacraftCrossUnionShipData(PeakSeacraftCrossUnionShipData data){
        return new PeakSeacraftCrossUnionShipDataDaoImpl().add(data);
    }

    public static boolean updatePeakSeacraftCrossUnionShipData(PeakSeacraftCrossUnionShipData data){
        return new PeakSeacraftCrossUnionShipDataDaoImpl().update(data);
    }

    // battle detail
    public static List<PeakSeacraftBattleDetailData> getPeakSeacraftBattleDetailDataList(int activityId, long time, int unionGroup){
        return new PeakSeacraftBattleDetailDataDaoImpl().getPeakSeacraftBattleDetailDataList(activityId, time, unionGroup);
    }

    public static boolean addPeakSeacraftBattleDetailData(PeakSeacraftBattleDetailData data){
        return new PeakSeacraftBattleDetailDataDaoImpl().add(data);
    }

    public static boolean updatePeakSeacraftBattleDetailData(PeakSeacraftBattleDetailData data){
        return new PeakSeacraftBattleDetailDataDaoImpl().update(data);
    }

    // 日志
    public static List<PeakSeacraftCrossRecordData> getPeakSeacraftCrossRecordDataList(int activityId, long time, int unionGroup){
        return new PeakSeacraftCrossRecordDataDaoImpl().getPeakSeacraftCrossRecordDataList(activityId,time,unionGroup);
    }

    public static boolean addPeakSeacraftCrossRecordData(PeakSeacraftCrossRecordData data){
        return new PeakSeacraftCrossRecordDataDaoImpl().add(data);
    }

    public static boolean updatePeakSeacraftCrossRecordData(PeakSeacraftCrossRecordData data){
        return new PeakSeacraftCrossRecordDataDaoImpl().update(data);
    }

}
